from sqlalchemy.orm import sessionmaker
from create_table import engine
Session = sessionmaker(engine)
db_session = Session()

from create_table import User
"""
delete user where di = 4
"""
# 删除单条 或者符合条件的
res = db_session.query(User).filter(User.id == 4).delete()
print(res)
db_session.commit()
db_session.close()

# 删除多条数据

